package datatypes.tv;

import java.util.ArrayList;
import java.util.List;

public class tvActors {
	List<tvActor> tv_actors;

	public tvActors() {
		this.tv_actors = new ArrayList<tvActor>();
	}
	
	public tvActors(tvActor tv_actor) {
		this.tv_actors = new ArrayList<tvActor>();
		this.tv_actors.add(tv_actor);
	}
	
	public tvActors(List<tvActor> tv_actors) {
		this.tv_actors = new ArrayList<tvActor>();
		this.tv_actors.addAll(tv_actors);
	}

	public void addActor(tvActor tv_actor) {
		this.tv_actors.add(tv_actor);
	}
 
	
	public List<tvActor> getActors(){
		return this.tv_actors;
	}
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		int actorIndex = 1;
		for(tvActor tv_actor : tv_actors){
			sb.append("tv_actor <" + actorIndex++ + ">: \n");
			sb.append(tv_actor.toString() + "\n");
		}

		return sb.toString();
	}
}
